package com.spider.constructor;

public class Test {
    public static void main(String[] args) {
        //认识类的构造器，搞清楚特点和常见的应用场景。
        //构造器特点：创建对象时，对象会立即自动调用构造器。
        Student s = new Student();
        Student s1 = new Student("诗白灯",19);
        Student s2 = new Student("诗白灯",19,"男");
        System.out.println(s2.name);
    }
}
